package com.mtzqc.common.service.event

abstract class BaseEvent(private val eventId: String) : IEvent {
    var map: MutableMap<String, String?>? = null

    override fun eventId(): String {
        return eventId;
    }

    override fun addKeyValue(key: String, value: String?): IEvent {
        if (null == map) {
            map = hashMapOf()
        }
        map?.put(key, value)
        return this
    }

    override fun getExtMap(): MutableMap<String, String?>? {
        return map;
    }
}